- service_desk_enabled = @project.service_desk_enabled?

- can_edit_project_settings = can?(current_user, :admin_project, @project)
- can_admin_issues = can?(current_user, :admin_issue, @project)
- title_text = s_("ServiceDesk|Use Service Desk to connect with your users and offer customer support through email right inside GitLab")

.media.gl-border-b.gl-pb-3.gl-text-left
  .svg-content
    = render partial: 'projects/issues/service_desk/icons/service_desk_callout', formats: :svg

  .gl-mt-3.gl-ml-3
    %h5= title_text

    - if can_admin_issues && service_desk_enabled
      %p
        = s_("ServiceDesk|Your users can send emails to this address:")
        %code= @project.service_desk_address

    %span= s_("ServiceDesk|Issues created from Service Desk emails will appear here. Each comment becomes part of the email conversation.")
    = link_to _('Learn more.'), help_page_path('user/project/service_desk')

    - if can_edit_project_settings && !service_desk_enabled
      .gl-mt-3
        = link_button_to s_("ServiceDesk|Enable Service Desk"), edit_project_path(@project), variant: :confirm
